<?php if(!empty($this->results)):?>
<?php foreach($this->results as $r):?>
<div id="searchresults">
<span class="category" >Категория: <a href=""><?=$r->category_name;?></a></span>
<img src="<?=$r->img;?>" class="article" />
<p><a href="<?=$this->url(array('id'=>$r->article_id),'catalog-display');?>"><?=$r->title;?></a></p>
<p class="description"><?=$r->description;?></p> 
<p class="author">aвтор: <?=$r->author;?></p>
<p class="created_time">Дата создания: <?=$r->created_dt;?></p>
<hr class="line"><br/>
</div>
<?php endforeach;?>
<?php else:?>
<p>Поиск не дал результатов</p>
<?php endif;?>
<div id="pages">
<?=$this->pages;?>
</div>
